import {GETMODULEPATH, GETTOKEN, USERDATA, ADD} from "./numberType";
import session from './../ulti/sessionStroage/sessionStroage'

export default {
  [GETTOKEN]: (state,value)=>{
    state.token = value;
    session.saveToken(value);
  },
  [USERDATA]: (state,value)=>{
    state.userData = value;
    session.saveUserData(value);
  },
  [GETMODULEPATH]: (state,value)=>{
    state.modulePath = value;
  },
  [ADD]: (state)=>{
    console.log('1')
    state.test++;
  }
}
